// $URL: http://mingw-lib.googlecode.com/svn/trunk/working/avcodec_to_widget_10/input/t_box_input_sequence.h $
// $Rev: 326 $
// $Author: akio.miyoshi $
// $Date:: 2010-08-01 04:27:39 +0000#$

#ifndef T_BOX_INPUT_SEQUENCE_H
#define T_BOX_INPUT_SEQUENCE_H

#include "t_box_input.h"
#include "t_box_seq.h"

class T_Box_Input_Sequence : public T_Box_Input
{
    Q_OBJECT
public:
    T_Box_Input_Sequence(T_Box_Sequence * a_seq);
    ~T_Box_Input_Sequence();
    virtual bool isValid();
    virtual void close();
    T_Box_Sequence *sequence();
protected:
    virtual int bufferSize();
    virtual qint64 size();
    virtual qint64 pos();
    virtual bool seek(qint64 offset);
    virtual QByteArray wait_read(qint64 a_max_size);
protected:
    T_Box_Sequence *m_seq;
    T_Box_Sequence_Proxy *m_seq_proxy;
};

#endif // T_BOX_INPUT_SEQUENCE_H
